package com.mzy.javaapi.NotCommon;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author mzy
 * @Date 2022/4/19 17:07
 * @Version 1.0
 */
public class systemArrayCopy {
    public static void main(String[] args) {
        // write your code here
        int[] srcArr = {1,2,3,4,5,6,7,8,9,0};
        int[] desArr = new int[srcArr.length];
        System.arraycopy(srcArr, 1, desArr, 0, 5);
        for (int i : desArr) {
            System.out.print(i);
        }
    }
}
